package com.dick.base.dto;

import lombok.Data;

import java.math.BigDecimal;
import java.util.LinkedList;
import java.util.List;

/**
 * pad端待产列表
 */
@Data
public class ToBeProduceList {

    private List<ProjectInfo> projects = new LinkedList<>();

    @Data
    public static class ProjectInfo {
        private String projectVirtualId;
        private String projectName;
        private String projectBatchNumber;
        private String customerNickname;
        private BigDecimal weight = BigDecimal.ZERO;
        private Integer itemCount = 0;
        private Integer index = 0;
        private Integer urgent;
        private String memo;
        private List<ProjectItem> itemList = new LinkedList<>();
    }

    @Data
    public static class ProjectItem {
        private Long id;
        /**
         * 材质，长度限制0~32
         */
        private String material;
        /**
         * 厚度，长度限制0~32，单位mm
         */
        private String thickness;
        /**
         * 宽度，int类型，单位mm
         */
        private Integer width;
        /**
         * 长度，int类型，单位mm
         */
        private Integer length;
        /**
         * 数量，int类型，单位：张
         */
        private Integer quantity;
        /**
         * 重量，decimal类型，单位：千克
         */
        private BigDecimal weight;
        /**
         * 是否贴膜
         */
        private Boolean film;
        /**
         * 是否改板
         */
        private Boolean changeSpecification;
        /**
         * 顺序
         */
        private Integer index;
    }
}
